#coding:utf-8
#文件内容格式：2,3,2-34,3:21,2.34,2.45,3.01,2:01,2:01,3:10,2-22,3.01,3.01,3.01
def getdata(data):
    """
    从文件中获取数据
    """
    with open(data,"r+") as f:
        alldata=f.readline()
        return alldata

def flushdata(s):
    """
    清洗数据
    """
    if '-' in s:
        s=s.replace("-",".")
    if ":" in s:
        s=s.replace(":",".")
        s=s.strip().split(",")
    return s
def operate(fs):
    """
    执行操作（排序）
    """
    newdata=sorted((set(fs)))[0:3]
    return newdata

data=getdata("mike.txt")
fdata=flushdata(data)
test=operate(fdata)
print(test)

